package com.wss.merchant.controller;

import com.wss.merchant.domain.PicUploadResult;
import com.wss.merchant.service.OssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class OssController {

        @Autowired
        private OssService ossService;
        @RequestMapping("/putImg")
        @ResponseBody
        public PicUploadResult putImg(@RequestParam("file") MultipartFile multipartFile){
            return ossService.putImg(multipartFile);
        }
}

